// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import { Group, Cell, Grid, GridItem, XInput, XButton, Flexbox, FlexboxItem, XImg, PopupRadio, XAddress, Radio, XDialog, XTextarea, Card, Panel, Checker, CheckerItem, Tabbar, TabbarItem, XHeader, Datetime, Confirm, TransferDomDirective as TransferDom, XSwitch } from 'vux'
import OIcon from './components/o-icon.vue'
import OHeader from './components/o-header.vue'
import OPanel from './components/o-panel.vue'
import store from './vuex/store'

const FastClick = require('fastclick')
FastClick.attach(document.body)

Vue.config.productionTip = false
Vue.component('OIcon', OIcon)
Vue.component('OHeader', OHeader)
Vue.component('OPanel', OPanel)
Vue.component('Confirm', Confirm)
Vue.component('checker', Checker)
Vue.component('checker-item', CheckerItem)
Vue.component('XImg', XImg)
Vue.component('Grid', Grid)
Vue.component('GridItem', GridItem)
Vue.component('XDialog', XDialog)
Vue.component('Datetime', Datetime)
Vue.component('Radio', Radio)
Vue.component('Group', Group)
Vue.component('Cell', Cell)
Vue.component('Card', Card)
Vue.component('Panel', Panel)
Vue.component('Tabbar', Tabbar)
Vue.component('TabbarItem', TabbarItem)
Vue.component('XHeader', XHeader)
Vue.component('XInput', XInput)
Vue.component('XButton', XButton)
Vue.component('PopupRadio', PopupRadio)
Vue.component('XAddress', XAddress)
Vue.component('XTextarea', XTextarea)
Vue.component('Flexbox', Flexbox)
Vue.component('FlexboxItem', FlexboxItem)
Vue.component('XSwitch', XSwitch)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
